/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package UI;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author Mathias
 */
public class ChatUI implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    private String name;
    private int id;
    private ArrayList<ChatMessageUI> messages;
    
    public ChatUI(String name){
        this.name = name;
        messages = new ArrayList<ChatMessageUI>();
    }
    
    public ChatUI(int id, String name){
        this.id = id;
        this.name = name;
        messages = new ArrayList<ChatMessageUI>();
        
    }
    
    public ChatUI(int id, String name, ArrayList<ChatMessageUI> messages){
        
        this.id = id;
        this.name = name;
        this.messages = messages;
        
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public ArrayList<ChatMessageUI> getMessages() {
        return messages;
    }

    public void setMessages(ArrayList<ChatMessageUI> messages) {
        this.messages = messages;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    
    
    
}
